package ToStringPractise;

public class GeometricObject {
    protected  String color;
    protected double weight;
    public GeometricObject(){
        color="white";
        weight=1.0;
    };

    public GeometricObject(String color, Double weight) {
        this.color = color;
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
